package com.campusexpresspickup.mapper;

import com.campusexpresspickup.entity.OauthRole;
import com.campusexpresspickup.entity.OauthUserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OauthUserRoleMapper extends BaseMapper<OauthUserRole> {

  /**
   * 获取用于所有角色
   */
  List<OauthRole> getRoleList(Integer userId);

  void insertList(@Param("list") List<OauthUserRole> list);
}
